<template>
  <div class="homeIndex">
    <!-- 顶部设置栏 -->
    <div class="topset">
      <TopSettingsBar></TopSettingsBar>
    </div>

    <div class="main">
      <!-- 组件库 -->
      <div class="leftSet">
        <ComponentLibrary></ComponentLibrary>
      </div>

      <!-- 画板 -->
      <div class="centerSet">
        <div class="box" ref="box">
          <DrawingBoard ref="DrawingBoard"></DrawingBoard>
        </div>
        <!-- <iframe src="./components/DrawingBoard.vue" frameborder="0"></iframe> -->
      </div>

      <!-- 编辑工具 -->
      <div class="rightSet">
        <EditUtils></EditUtils>
      </div>
      
    </div>
  </div>
</template>

<script>
//引入顶部设置栏
import TopSettingsBar from "@/views/home/components/TopSettingsBar.vue";
//引入左侧组件库
import ComponentLibrary from "@/views/home/components/ComponentLibrary.vue";
//引入中间画板
import DrawingBoard from "@/views/home/components/DrawingBoard.vue";
// 引入右侧编辑工具
import EditUtils from "@/views/home/components/EditUtils.vue";
export default {
  components: {
    TopSettingsBar,
    ComponentLibrary,
    EditUtils,
    DrawingBoard,
  },
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.homeIndex {
  width: 100%;
  height: 100%;
  background-color: #f0f8ff;

  .topset {
    padding-top: 10px;
  }

  .main {
    display: flex;
    padding-top: 100px;
    justify-content: space-between;
    .leftSet {
      width: 300px;
    }
    .centerSet {
      .box {
        width: 375px;
        height: 667px;
      }
      max-height: 700px;
      max-width: 1000px;
      overflow: auto;
    }
    .rightSet {
      width: 600px;
    }
  }
}
</style>
